//
//  CMUserFeedbackParam.m
//  CreditManger
//
//  Created by chaiyanan on 15/11/11.
//  Copyright © 2015年 jinxin. All rights reserved.
//

#import "CMUserFeedbackParam.h"

@implementation CMUserFeedbackParam

- (NSDictionary *)buidlParam2Dictionary
{
    return @{Key_uid:[DataTypeTranslate stringToString:self.uid],
             Key_token:[DataTypeTranslate stringToString:self.token],
             Key_content:[DataTypeTranslate stringToString:self.content]
             };
}

- (NSDictionary *)buidImageParam2Dictionary
{
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    if (self.file1&&self.file1.length>0)
    {
        [dict setObject:self.file1 forKey:Key_file1];
    }
    if (self.file2&&self.file2.length>0)
    {
        [dict setObject:self.file2 forKey:Key_file2];
    }
    if (self.file3&&self.file3.length>0)
    {
        [dict setObject:self.file3 forKey:Key_file3];
    }
    if (self.file4&&self.file4.length>0)
    {
        [dict setObject:self.file4 forKey:Key_file4];
    }
    return dict;
}

@end
